<template>
  <div>
    <div class="back">
      <div class="background">
          <img src="@/assets/bg.png" alt="" />
          <div class="middle">
            <div class="box">
              <img class="avatar" src="@/assets/avatar.png" alt="icon" />
            </div>
            <div class="name">游客</div>
            <van-button type="primary" to="/login">去登录</van-button>
          </div>
        <div class="tu">
          <van-grid :column-num="3">
            <van-grid-item icon="star-o" text="我的收藏" to="/login" />
            <van-grid-item icon="wap-home-o" text="我的出租" to="/login" />
            <van-grid-item icon="underway-o" text="看房记录" />
            <van-grid-item icon="idcard" text="成为房主" />
            <van-grid-item icon="contact" text="个人资料" />
            <van-grid-item icon="service-o" text="联系我们" />
          </van-grid>
        </div>

        <div class="hk">
          <img src="@/assets/rshk.png" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data () {
    return {}
  },
  computed: {},
  watch: {},
  created () {},
  methods: {}
}
</script>

<style scoped lang="less">
.back {
  height: 700px;
}
.background {
  position: relative;
}
img {
  width: 100%;
}
.middle {
  width: 80%;
  height: 180px;
  background-color: #fff;
  position: absolute;
  top: 140px;
  left: 10%;
  box-shadow: 0px 5px 10px gray;

  .van-button {
    width: 80px;
    height: 35px;
    background-color: #58b77f;
    margin-top: 85px;
    margin-left: 38%;
    border-radius: 8px;
  }
  .name {
    color: #333;
    text-align: center;
    font-size: 13px;
    box-sizing: border-box;
    margin-top: 30px;
    margin-bottom: -80px;
  }
  .box {
    position: relative;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    border: 5px solid #f5f5f5;
    display: inline-block;
    box-shadow: 0 2px 2px #bdbdbd;
    left: 35%;
    margin-top: -40px;
  }
}
.tu {
  width: 100%;
  height: 200px;
  // background-color: pink;
  margin-top: 140px;
  .van-grid {
    width: 100%;
    height: 100%;
  }
}
.hk {
  margin-top: 10px;
}
</style>
